<?php
require_once 'application/library/controller/gcLBasicAction.php';
require_once 'application/library/service/commService/gcProvService.php';
require_once 'application/modules/order/constant/order_constant_templatName.php';
require_once 'application/modules/order/services/order_services_orderViewService.php';

/**
 * 订单详细
 * orderViewController
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */
class order_orderViewController extends gcLBasicAction{

    /**
     * objService
     */
    private $objService;

    /**
     * indexAction
     */
    public function indexAction(){
        $this->pvSetPageInfo();

        $strOrderNo = $this->getParam("OrderNo");
        $this->objService=new order_services_orderViewService();
        $arrSearchData = $this->objService->pbGetSupplierInfo($strOrderNo);
        $this->gcView->arrSearchData=$arrSearchData;
        $this->gcView->render(order_constant_templatName::ORDER_VIEW);
    }

    /**
     * pvSetPageInfo
     */
    private function pvSetPageInfo(){
        $this->gcView->title                     = $this->getLabel("order_EC0004_PageTitle");
        $this->gcView->order_0001_Order         = $this->getLabel("order_0001_Order");
        $this->gcView->order_0003_SupplierName  = $this->getLabel("order_EC0004_SupplierName");
        $this->gcView->order_0003_SaleTp        = $this->getLabel("order_0001_SaleTp");
        $this->gcView->order_0003_Status          = $this->getLabel("order_0001_Status");
        $this->gcView->order_0003_Position      = $this->getLabel("order_0001_Position");
        $this->gcView->order_0003_ContractNo    = $this->getLabel("order_0001_ContractNo");
        $this->gcView->order_0003_Tel           = $this->getLabel("order_0001_Tel");
        $this->gcView->order_0003_Mobile        = $this->getLabel("order_0001_Mobile");
        $this->gcView->order_0003_Fax           = $this->getLabel("order_0001_Fax");
        $this->gcView->order_0003_Email         = $this->getLabel("order_0001_Email");
        $this->gcView->order_0001_Info       = $this->getLabel("order_0001_Info");
        $this->gcView->order_0003_Seller        = $this->getLabel("order_0001_Seller");
        $this->gcView->order_0001_Price        = $this->getLabel("order_0001_Price");
        $this->gcView->order_0003_Edit          = $this->getLabel("order_0001_Edit");
        $this->gcView->order_0003_Add           = $this->getLabel("order_0001_Add");
        $this->gcView->order_0003_City          = $this->getLabel("order_0002_City");
        $this->gcView->order_0003_Address       = $this->getLabel("order_0002_Address");
        $this->gcView->order_0003_Ali           = $this->getLabel("order_0001_Ali");
        $this->gcView->order_0003_Homepage      = $this->getLabel("order_0002_Homepage");
        $this->gcView->order_0003_Title3        = $this->getLabel("order_0001_Supplier").$this->getLabel("order_0002_PaymentKind").$this->getLabel("order_0002_Setting");
        $this->gcView->order_0003_PaymentKind   = $this->getLabel("order_0002_PaymentKind");
        $this->gcView->order_0003_PaymentMethod = $this->getLabel("order_0002_PaymentMethod");
        $this->gcView->order_0003_Account       = $this->getLabel("order_0002_Account");
        $this->gcView->order_0003_NotUse        = $this->getLabel("order_0002_NotUse");
        $this->gcView->order_0003_Bank          = $this->getLabel("order_0002_Bank");
        $this->gcView->order_0003_Epay          = $this->getLabel("order_0002_Epay");
        $this->gcView->order_0003_Cash          = $this->getLabel("order_0002_Cash");
        $this->gcView->order_0003_Close         = $this->getLabel("order_0003_Close");
        $this->gcView->order_0003_Edit          = $this->getLabel("order_0001_Edit");
    }
}
